﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="List.aspx.cs" Inherits="website_List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <h2>网站管理</h2>
    <div>
        <asp:Repeater ID="rptWebSite" runat="server" EnableTheming="True" EnableViewState="False">
            <HeaderTemplate>
                <table border="1" cellpadding="0" cellspacing="0" width="100%" id="AutoNumber1">
                    <tr>
                        <th width="20%" align="center">
                            编辑
                        </th>
                        <th width="20%" align="center">
                            相关插件
                        </th>
                        <th width="20%" align="center">
                            序号
                        </th>
                        <th width="20%" align="center">
                            网站名称
                        </th>
                        <th width="20%" align="center">
                            网站描述
                        </th>
                        <th width="20%" align="center">
                            网站分类
                        </th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td width="20%" align="center">
                        <a href="manage.aspx?site_id=<%# DataBinder.Eval(Container.DataItem,"site_id") %>">编辑</a>
                    </td>
                    <td width="20%" align="center">
                        <a href="../plugin/List.aspx?site_id=<%# DataBinder.Eval(Container.DataItem,"site_id") %>">
                            插件</a>
                    </td>
                    <td width="20%" align="center">
                        <%# DataBinder.Eval(Container.DataItem,"site_id") %>
                    </td>
                    <td width="20%" align="center">
                        <%# DataBinder.Eval(Container.DataItem, "name")%>
                    </td>
                    <td width="40%" align="center">
                        <%# DataBinder.Eval(Container.DataItem, "description")%>
                    </td>
                    <td width="20%" align="center">
                        <%# DataBinder.Eval(Container.DataItem, "category_name")%>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table></FooterTemplate>
        </asp:Repeater>
    </div>
    </form>
</body>
</html>
